# Contributor: Drew DeVault <sir@cmpwn.com>
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=py3-sqlalchemy
pkgver=1.3.18
pkgrel=0
pkgdesc="An object relational mapper for Python"
options="!check" # 2 failed, 8530 passed, 1009 skipped
url="https://pypi.python.org/pypi/SQLAlchemy"
arch="all"
license="MIT"
makedepends="python3-dev py3-setuptools"
checkdepends="
	py3-pytest py3-mock py3-pytest-xdist
"
source="https://files.pythonhosted.org/packages/source/S/SQLAlchemy/SQLAlchemy-$pkgver.tar.gz"
builddir="$srcdir/SQLAlchemy-$pkgver"

replaces="py-sqlalchemy" # Backwards compatibility
provides="py-sqlalchemy=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	pytest-3 -n $JOBS
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="8a358fa9fea35ecc89a2f566d5873668923dc3999508fb6bf314972b78fd9dd06eca227b992f4388ba0d7e9cad39783166b57184fe69eb5dcec6d9adb828f0ec  SQLAlchemy-1.3.18.tar.gz"
